package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.CaiwuPankui;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

public interface CaiwuPankuiMapper {

    int insert(CaiwuPankui record);

    CaiwuPankui getPankui(@Param("shopCode") String shopCode, @Param("beginTime") Date beginTime);

    int count(@Param("shopCode") String shopCode, @Param("beginTime") Date beginTime);

    void update(CaiwuPankui pankui);

    CaiwuPankui selectPankui(@Param("shopCode") String shopCode, @Param("beginTime") Date beginTime);

    /**
     * 删除盘亏表数据
     * @param shopCode
     * @param beginTime
     */
    void delete(@Param("shopCode") String shopCode, @Param("beginTime") Date beginTime);
}